GetBucketLogging
Description
the GetBucketLogging is used to view the bucket access log configuration.
Request Method
POST
Request Path
/apsara/route/OneRouter/GetBucketLogging
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
BucketLoggingStatus | BODY | container | No | No sample value for this parameter. | container for accessing log status information. |
TargetPrefix | BODY | string | No | No sample value for this parameter. | specifies the final saved access log file prefix. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
TargetBucket | BODY | string | No | No sample value for this parameter. | specifies the bucket on which access logs are stored. |
version | BODY | string | No | 2016-01-01 | version of api |
LoggingEnabled | BODY | container | No | No sample value for this parameter. | container for accessing log information. This element is needed when it is turned on and not when it is turned off. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}